﻿<Window x:Class="ResourceBlender_Express.WinSelectApplication"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:loc="clr-namespace:ResourceBlender_Express"
    loc:WindowService.EscapeClosesWindow="True"
    Title="Select Applications" WindowStartupLocation="CenterOwner"
    MinHeight="200" Height="300" MinWidth="200" Width="250"
    Loaded="Window_Loaded"
    Style="{StaticResource {x:Type Window}}" Icon="/ResourceBlender-Express;component/Resources/images/resourceblender.ico">
    <Window.CommandBindings>
        <CommandBinding Command="ApplicationCommands.Save" Executed="Save" />
        <CommandBinding Command="ApplicationCommands.Close" Executed="CloseWindow" />
    </Window.CommandBindings>
    <DockPanel LastChildFill="True">
        <StatusBar DockPanel.Dock="Bottom" Height="24">
            <StatusBarItem x:Name="lblStatus" Visibility="Collapsed">Loading</StatusBarItem>
            <StatusBarItem>
                <ProgressBar x:Name="prgStatus" IsIndeterminate="True" Visibility="Hidden" />
            </StatusBarItem>
        </StatusBar>
        <DockPanel DockPanel.Dock="Top" LastChildFill="True" Margin="6" >
            <Label DockPanel.Dock="Top">Select Applications</Label>
            
            <StackPanel DockPanel.Dock="Bottom" Orientation="Horizontal" HorizontalAlignment="Right" VerticalAlignment="Center">
                <Button x:Name="btnSave" MinWidth="70" IsDefault="True" Command="ApplicationCommands.Save">Save</Button>
                <Button x:Name="btnCancel" MinWidth="70" IsCancel="True" Command="ApplicationCommands.Close" Margin="2,2,0,2">Cancel</Button>
            </StackPanel>
            
            <ListBox x:Name="lstApplications" DockPanel.Dock="Bottom" Style="{StaticResource CheckBoxListTemplate}" />
        </DockPanel>
    </DockPanel>
</Window>
